import Control from "@/api/data/Control";

export default class Scheme extends Control {

    private _data: IScheme;

    get data(): IScheme {
        return this._data;
    }

    constructor() {
        super();
    }

   

    protected initData(): void {
        let scheme = './font/song_regular.json';
        this.urls.push({ url: scheme, method: 'GET', baseURL: '' });
    }

    protected onRequestComplete(res: any): void {
        //需要自己知道第几个
        this._data = res[0];

        console.log('scheme:', res);
    }

    protected onRequestError(res: any): void {

    }

    cache() {

    }
}